package com.qa.dom.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.qa.dom.dto.HomePageDto;
import com.qa.dom.dto.TeacherDetailDto;
import com.qa.dom.dto.UsertableDto;
import com.qa.dom.entity.Orderform;
import com.qa.dom.entity.Usertable;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  * 用户表 Mapper 接口
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
public interface UsertableMapper extends BaseMapper<Usertable> {
    List<HomePageDto> queryHomePage(Usertable usertable);
    List<HomePageDto> queryHomePageByPage(Pagination page, Usertable usertable);

    TeacherDetailDto queryTeacher(@Param("usertable") Usertable usertable,@Param("teacherId") Integer teacherId);

    public boolean updateStuNickname(@Param("id") Integer id, @Param("nickname") String nickname);

    UsertableDto queryUsertableById(@Param("id") Integer id);
    TeacherDetailDto queryTeacher(Usertable usertable);
    public Orderform myWallet(@Param("phone") String phone);
    public com.qa.dom.entity.Param queryGrade(@Param("phone") String phone);

    public boolean updateStuImg(@Param("id") Integer id, @Param("sheadimg") String nickname);



}